package com.aj.activity.dialog;

import android.content.Context;
import android.os.Bundle;
import android.widget.TextView;

import com.aj.activity.R;

public class ProgressDialog extends BaseDialog {

	private TextView content;

	public ProgressDialog(Context context) {
		super(context, R.layout.dialog_progress);
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setCanceledOnTouchOutside(false);
		content = (TextView) findViewById(R.id.content);
	}

	public void setContentText(String text) {
		if (content != null) {
			content.setText(text);
		}
	}

	public void setContentText(int textID) {
		if (content != null) {
			content.setText(textID);
		}
	}
}
